﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Shopping.Common;
using Shopping.Model;
using Shopping.BLL;
public partial class Home_MyEvaluate : BaseUserPage
{
    private readonly EvaluateManage _evalManage = new EvaluateManage();
    protected List<GoodsEvaluateInfo> _goodsEvalList = new List<GoodsEvaluateInfo>();

    protected AsPage asPage = new AsPage();
    protected int _pageSize = 10;
    protected int _curPage = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (string.IsNullOrEmpty(Request.QueryString["page"]))
            {
                _curPage = Utility.G<int>("page");
            }
            asPage.CurPage = _curPage;
            asPage.PageSize = _pageSize;
            _goodsEvalList = _evalManage.QueryListAsPageByUser("", UserID,  asPage);
        }
    }
}